var baseConfig = require("../../baseConfig")
Page({
  data: {
    page: 0,
    douyinList: []
  },
  onLoad: function (options) {
    this.getData()
  },
  getData() {
    var uid = wx.getStorageSync("userid")
    wx.request({
      url: baseConfig.baseUrl + 'users/bindtt/page',
      data: {
        p: this.data.page,
        f: 10
      },
      method: "GET",
      header: {
        "Content-Type": "application/json",
        "UID": uid
      },
      success: res => {
        console.log(res.data.data.content)
        if (res.data.data.content != null) {
          this.setData({
            douyinList: res.data.data.content
          })
        } else {
          this.setData({
            douyinList: []
          })
        }
      }
    })
  },
})